﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Finance.Domain
{

    [SugarTable("Product")]
    public class ProductModel:Basic
    {
        /// <summary>
        /// 商品编号
        /// </summary>

        public string ProductNo {  get; set; }

       

        /// <summary>
        /// 商品名称
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        /// 系统库存数量
        /// </summary>
        public int ProductNum {  get; set; }

        /// <summary>
        /// 库名
        /// </summary>
        public string Location {  get; set; }

        /// <summary>
        /// 产品状态：0-未入库，1-已入库，2-已出库
        /// </summary>
        public int ProductStatus { get; set; } = 0;
        

        /// <summary>
        /// 货品类型 服装、食品、家电
        /// </summary>
        public string ProductType { get; set; }
        /// <summary>
        /// 库存总容量
        /// </summary>
        public int ProductAllNum {  get; set; }

        /// <summary>
        /// 剩余库存容量=库存总容量-系统库存数量
        /// </summary>
        public int ProductRemainingNum {  get; set; }


        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime ProductionDate {  get; set; }
        /// <summary>
        /// 到期日期
        /// </summary>
        public DateTime OverProductDate {  get; set; }
        /// <summary>
        /// 保质期(到期日期-生产日期)
        /// </summary>
        public int Shelflife {  get; set; }
        /// <summary>
        /// 剩余天数（到期日期-当前日期）
        /// </summary>
        public int RemainingDays {  get; set; }

        /// <summary>
        /// 是否到期状态 1已到期  2即将到期（剩余天数<10） 3已到期
        /// </summary>
        public int TimeType {  get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        public string BatchNum {  get; set; }

        /// <summary>
        /// 库存上限
        /// </summary>
        public int NumMax {  get; set; }

        /// <summary>
        /// 库存下限
        /// </summary>
        public int NumMin { get; set; }

        /// <summary>
        /// 高于上限
        /// </summary>
        public int ByongNumMax {  get; set; }
        /// <summary>
        /// 低于下限
        /// </summary>
        public int ByongNumMin {  get; set; }

    }
}
